package com.smart.manager.system.entities.models;

import com.smart.common.entities.core.BaseLongModel;
import com.smart.manager.system.entities.enums.LoginResult;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.experimental.Accessors;

import javax.persistence.Entity;
import java.time.LocalDateTime;

/**
 * 系统管理-登录日志
 * @author Administrator
 * @TableName system_module
 */
@EqualsAndHashCode(callSuper = true)
@Entity @Data @Accessors(chain = true)
public class SystemLoginLog extends BaseLongModel {


    @ApiModelProperty("登录账号")
    private String account;

    @ApiModelProperty("客户端IP")
    private String ip;


    @ApiModelProperty("请求客户端操作系统")
    private String os;

    @ApiModelProperty("请求浏览器")
    private String browser;


    @ApiModelProperty("登录结果")
    private LoginResult result;

    @ApiModelProperty("登录时间")
    private LocalDateTime loginTime;


    @ApiModelProperty("模块描述")
    private String description;


}
